<header class="header">
  <div class="main clearfix">
    <div class="logo">
    {%- assign _paths_root = site.paths.root | default: site.data.variables.default.paths.root  -%}
    {%- include snippets/get-nav-url.html path=_paths_root -%}
    {%- if site.title -%}
      <a title="{%- if site.description -%}{{ site.description }}{%- endif -%}" href="{{ __return }}">{{ site.title }}</a>
    {%- endif -%}
    {%- include svg/logo.svg -%}
	  <div class="site-sub-title">{{ site.description }}</div>
	</div>
    {%- if site.data.navigation.header -%}
    <nav>
      <ul>
        {%- for _item in site.data.navigation.header -%}
          {%- include snippets/get-nav-url.html path=_item.url -%}
          {%- assign _nav_url = __return -%}
          {%- include snippets/get-nav-url.html path=page.url -%}
          {%- assign _page_url = __return -%}
          {%- include snippets/locale-to-string.html locale=_item.titles -%}
          {%- if _nav_url == _page_url -%}
            <li class="active"><a href="{{ _nav_url }}">{%- if _item.title -%}{{ _item.title }}{%- else -%}{{ __return }}{%- endif -%}</a></li>
          {%- else -%}
            <li><a href="{{ _nav_url }}">{%- if _item.title -%}{{ _item.title }}{%- else -%}{{ __return }}{%- endif -%}</a></li>
          {%- endif -%}
        {%- endfor -%}
      </ul>
    </nav>
    {%- endif -%}
  </div>
</header>
